package com.module.demo.controller;

import com.module.demo.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @className: DemoController
 * @description: DemoController 描述
 * @author: kangzeng.ckz
 * @date: 2021/12/1
 **/
@Controller
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private ProductService productService;

    /**
     * @param
     * @description: test 方法定义
     * @return: java.lang.String
     * @author: kangzeng.ckz
     * @date: 2021/12/1
     */
    @RequestMapping("/test")
    @ResponseBody
    public String test(String name) {

        return "test";
    }
}
